package com.ruoyi.ysg.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.ysg.domain.YsgStatistic;
import com.ruoyi.ysg.domain.YsgStudent;
import com.ruoyi.ysg.service.IYsgStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/ysg/statistic")
public class YsgStatisticController  extends BaseController {
    @Autowired
    private IYsgStatisticService statisticService;

    /**
     * 查询统计信息
     */
    @PreAuthorize("@ss.hasPermi('ysg:statistic:list')")
    @PostMapping("/getStatistic")
    public AjaxResult getStatistic(@RequestBody YsgStatistic ysgStatistic)
    {
        return AjaxResult.success(statisticService.getYsgStatistic(ysgStatistic));
    }


}
